<template>
  <ElementDialog ref="dialog" :visible="visible" embed center title="重命名" width="400px">
    <template #footer>
      <ElButton @click="close">取消</ElButton>
      <ElButton type="primary" @click="close">确定</ElButton>
    </template>
  </ElementDialog>
</template>

<script>
  export default {
    name: 'RenameDialog',
    props: {
      visible: Boolean
    },
    methods: {
      close() {
        this.$refs.dialog.hide()
      }
    }
  }
</script>
